package com.jmb.apiplatform.service;

import com.jmb.apiplatform.exception.ValidException;
import com.jmb.apiplatform.pojo.ApiTestPreCase;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 前置用例服务
 */

public interface ApiTestPreCaseService {
    @Transactional(rollbackFor = ValidException.class)
    void saveApiTestPreCase(ApiTestPreCase apiTestPreCase) throws ValidException;
    void editApiTestPreCase(ApiTestPreCase apiTestPreCase) throws ValidException;
    List<ApiTestPreCase> findApiTestPreCaseId(Integer preCaseId) throws ValidException;
    void removeApiTestPreCase(Integer id) throws ValidException;
    void removeApiTestPreCaseByCaseId(Integer preCaseId) throws ValidException;
    List<Integer> findApiTestPreCaseById(Integer PreId) throws ValidException;
    List<Integer> findApiTestPreCaseByCaseId(Integer caseId);
    List<Integer> recursionPreCase(List<Integer> returnResult, Integer PreCaseId);

}
